package com.fh.shop.api.util;

public class KeyUtil {

    public static String buildSMSPhoneKey(String phone){
        return "sms:phone:"+phone;
    }

    public static String buildMemberKey(Long memberId) {
        return "member:"+memberId;
    }

    public static String buildCartKey(Long memberId) {
        return "cart:member:"+memberId;
    }

    public static String buildActiveKey(String uuid) {
        return "member:active"+uuid;
    }

    public static String buildRecipientKey(Long memberId) {
        return "member:"+memberId+":recipient";
    }

    public static String buildTokenKey(String key) {
        return "token:uuid:"+key;
    }
}
